﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ComputerShopE3.Models.NGAN_HANG>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>Ngân hàng</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Danh sách ngân hàng</h2>

    <table>
        <tr>
            <th></th>
<%--            <th>
                id
            </th>--%>
            <th>
                Tên ngân hàng
            </th>
            <th>
                Tài khoản công ty
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Chỉnh sửa", "Edit", new { id=item.id}) %> |
               <%-- <%= Html.ActionLink("Details", "Details", new { id=item.id })%>--%>
            </td>
<%--            <td>
                <%= Html.Encode(item.id) %>
            </td>--%>
            <td>
                <%= Html.Encode(item.TenNganHang) %>
            </td>
            <td>
                <%= Html.Encode(item.TaiKhoanCongTy) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Tạo mới", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PersonalMenu" runat="server">
</asp:Content>

